package com.example.java.Controller;

import com.example.java.Service.FaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/face")
public class FaceContaoller {

    @Autowired
    private FaceService faceService;

    @PostMapping("/Comparison")
    public boolean contrastz(String avatar,Integer id){
        return faceService.contrastz(avatar,id);
    }

}